Optimal. Leaf size=559 \[ -\frac {\left (26 a^2 A b^2-15 A b^4-a^4 (3 A-8 C)\right ) \cot (c+d x) E\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{3 a^3 (a-b) b (a+b)^{3/2} d}+\frac {\left (21 a^2 A b^2-5 a A b^3-15 A b^4+a^3 b (3 A-2 C)+6 a^4 C\right ) \cot (c+d x) F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{3 a^3 (a-b) b (a+b)^{3/2} d}+\frac {5 A b \sqrt {a+b} \cot (c+d x) \Pi \left (\frac {a+b}{a};\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{a^4 d}+\frac {A \sin (c+d x)}{a d (a+b \sec (c+d x))^{3/2}}-\frac {b \left (5 A b^2-a^2 (3 A-2 C)\right ) \tan (c+d x)}{3 a^2 \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{3/2}}-\frac {b \left (26 a^2 A b^2-15 A b^4-a^4 (3 A-8 C)\right ) \tan (c+d x)}{3 a^3 \left (a^2-b^2\right )^2 d \sqrt {a+b \sec (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.82, antiderivative size = 559, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 7, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.212, Rules used = {4190, 4145,
4143, 4006, 3869, 3917, 4089} \begin {gather*} \frac {5 A b \sqrt {a+b} \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} \Pi \left (\frac {a+b}{a};\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{a^4 d}-\frac {b \left (5 A b^2-a^2 (3 A-2 C)\right ) \tan (c+d x)}{3 a^2 d \left (a^2-b^2\right ) (a+b \sec (c+d x))^{3/2}}-\frac {\left (-\left (a^4 (3 A-8 C)\right )+26 a^2 A b^2-15 A b^4\right ) \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} E\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{3 a^3 b d (a-b) (a+b)^{3/2}}+\frac {\left (6 a^4 C+a^3 b (3 A-2 C)+21 a^2 A b^2-5 a A b^3-15 A b^4\right ) \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{3 a^3 b d (a-b) (a+b)^{3/2}}-\frac {b \left (-\left (a^4 (3 A-8 C)\right )+26 a^2 A b^2-15 A b^4\right ) \tan (c+d x)}{3 a^3 d \left (a^2-b^2\right )^2 \sqrt {a+b \sec (c+d x)}}+\frac {A \sin (c+d x)}{a d (a+b \sec (c+d x))^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3869
Rule 3917
Rule 4006
Rule 4089
Rule 4143
Rule 4145
Rule 4190
Rubi steps
\begin {align*} \int \frac {\cos (c+d x) \left (A+C \sec ^2(c+d x)\right )}{(a+b \sec (c+d x))^{5/2}} \, dx &=\frac {A \sin (c+d x)}{a d (a+b \sec (c+d x))^{3/2}}-\frac {\int \frac {\frac {5 A b}{2}-a C \sec (c+d x)-\frac {3}{2} A b \sec ^2(c+d x)}{(a+b \sec (c+d x))^{5/2}} \, dx}{a}\\ &=\frac {A \sin (c+d x)}{a d (a+b \sec (c+d x))^{3/2}}-\frac {b \left (5 A b^2-a^2 (3 A-2 C)\right ) \tan (c+d x)}{3 a^2 \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{3/2}}+\frac {2 \int \frac {-\frac {15}{4} A b \left (a^2-b^2\right )+\frac {3}{2} a \left (A b^2+a^2 C\right ) \sec (c+d x)-\frac {1}{4} b \left (5 A b^2-a^2 (3 A-2 C)\right ) \sec ^2(c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx}{3 a^2 \left (a^2-b^2\right )}\\ &=\frac {A \sin (c+d x)}{a d (a+b \sec (c+d x))^{3/2}}-\frac {b \left (5 A b^2-a^2 (3 A-2 C)\right ) \tan (c+d x)}{3 a^2 \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{3/2}}-\frac {b \left (26 a^2 A b^2-15 A b^4-a^4 (3 A-8 C)\right ) \tan (c+d x)}{3 a^3 \left (a^2-b^2\right )^2 d \sqrt {a+b \sec (c+d x)}}-\frac {4 \int \frac {\frac {15}{8} A b \left (a^2-b^2\right )^2+\frac {1}{4} a \left (5 A b^4-3 a^4 C-a^2 b^2 (9 A+C)\right ) \sec (c+d x)-\frac {1}{8} b \left (26 a^2 A b^2-15 A b^4-a^4 (3 A-8 C)\right ) \sec ^2(c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx}{3 a^3 \left (a^2-b^2\right )^2}\\ &=\frac {A \sin (c+d x)}{a d (a+b \sec (c+d x))^{3/2}}-\frac {b \left (5 A b^2-a^2 (3 A-2 C)\right ) \tan (c+d x)}{3 a^2 \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{3/2}}-\frac {b \left (26 a^2 A b^2-15 A b^4-a^4 (3 A-8 C)\right ) \tan (c+d x)}{3 a^3 \left (a^2-b^2\right )^2 d \sqrt {a+b \sec (c+d x)}}-\frac {4 \int \frac {\frac {15}{8} A b \left (a^2-b^2\right )^2+\left (\frac {1}{8} b \left (26 a^2 A b^2-15 A b^4-a^4 (3 A-8 C)\right )+\frac {1}{4} a \left (5 A b^4-3 a^4 C-a^2 b^2 (9 A+C)\right )\right ) \sec (c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx}{3 a^3 \left (a^2-b^2\right )^2}+\frac {\left (b \left (26 a^2 A b^2-15 A b^4-a^4 (3 A-8 C)\right )\right ) \int \frac {\sec (c+d x) (1+\sec (c+d x))}{\sqrt {a+b \sec (c+d x)}} \, dx}{6 a^3 \left (a^2-b^2\right )^2}\\ &=-\frac {\left (26 a^2 A b^2-15 A b^4-a^4 (3 A-8 C)\right ) \cot (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{3 a^3 (a-b) b (a+b)^{3/2} d}+\frac {A \sin (c+d x)}{a d (a+b \sec (c+d x))^{3/2}}-\frac {b \left (5 A b^2-a^2 (3 A-2 C)\right ) \tan (c+d x)}{3 a^2 \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{3/2}}-\frac {b \left (26 a^2 A b^2-15 A b^4-a^4 (3 A-8 C)\right ) \tan (c+d x)}{3 a^3 \left (a^2-b^2\right )^2 d \sqrt {a+b \sec (c+d x)}}-\frac {(5 A b) \int \frac {1}{\sqrt {a+b \sec (c+d x)}} \, dx}{2 a^3}+\frac {\left (21 a^2 A b^2-5 a A b^3-15 A b^4+a^3 b (3 A-2 C)+6 a^4 C\right ) \int \frac {\sec (c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx}{6 a^3 (a-b) (a+b)^2}\\ &=-\frac {\left (26 a^2 A b^2-15 A b^4-a^4 (3 A-8 C)\right ) \cot (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{3 a^3 (a-b) b (a+b)^{3/2} d}+\frac {\left (21 a^2 A b^2-5 a A b^3-15 A b^4+a^3 b (3 A-2 C)+6 a^4 C\right ) \cot (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{3 a^3 (a-b) b (a+b)^{3/2} d}+\frac {5 A b \sqrt {a+b} \cot (c+d x) \Pi \left (\frac {a+b}{a};\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{a^4 d}+\frac {A \sin (c+d x)}{a d (a+b \sec (c+d x))^{3/2}}-\frac {b \left (5 A b^2-a^2 (3 A-2 C)\right ) \tan (c+d x)}{3 a^2 \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{3/2}}-\frac {b \left (26 a^2 A b^2-15 A b^4-a^4 (3 A-8 C)\right ) \tan (c+d x)}{3 a^3 \left (a^2-b^2\right )^2 d \sqrt {a+b \sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(1702\) vs. \(2(559)=1118\).
time = 20.55, size = 1702, normalized size = 3.04 \begin {gather*} \frac {(b+a \cos (c+d x))^3 \sec (c+d x) \left (A+C \sec ^2(c+d x)\right ) \left (-\frac {8 \left (-5 a^2 A b^2+3 A b^4-2 a^4 C\right ) \sin (c+d x)}{3 a^3 \left (-a^2+b^2\right )^2}+\frac {4 \left (A b^4 \sin (c+d x)+a^2 b^2 C \sin (c+d x)\right )}{3 a^3 \left (a^2-b^2\right ) (b+a \cos (c+d x))^2}+\frac {4 \left (-11 a^2 A b^3 \sin (c+d x)+7 A b^5 \sin (c+d x)-5 a^4 b C \sin (c+d x)+a^2 b^3 C \sin (c+d x)\right )}{3 a^3 \left (a^2-b^2\right )^2 (b+a \cos (c+d x))}\right )}{d (A+2 C+A \cos (2 c+2 d x)) (a+b \sec (c+d x))^{5/2}}-\frac {2 (b+a \cos (c+d x))^{5/2} \sqrt {\sec (c+d x)} \left (A+C \sec ^2(c+d x)\right ) \sqrt {\frac {1}{1-\tan ^2\left (\frac {1}{2} (c+d x)\right )}} \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (c+d x)\right )+b \tan ^2\left (\frac {1}{2} (c+d x)\right )}{1+\tan ^2\left (\frac {1}{2} (c+d x)\right )}} \left (3 a^5 A \tan \left (\frac {1}{2} (c+d x)\right )+3 a^4 A b \tan \left (\frac {1}{2} (c+d x)\right )-26 a^3 A b^2 \tan \left (\frac {1}{2} (c+d x)\right )-26 a^2 A b^3 \tan \left (\frac {1}{2} (c+d x)\right )+15 a A b^4 \tan \left (\frac {1}{2} (c+d x)\right )+15 A b^5 \tan \left (\frac {1}{2} (c+d x)\right )-8 a^5 C \tan \left (\frac {1}{2} (c+d x)\right )-8 a^4 b C \tan \left (\frac {1}{2} (c+d x)\right )-6 a^5 A \tan ^3\left (\frac {1}{2} (c+d x)\right )+52 a^3 A b^2 \tan ^3\left (\frac {1}{2} (c+d x)\right )-30 a A b^4 \tan ^3\left (\frac {1}{2} (c+d x)\right )+16 a^5 C \tan ^3\left (\frac {1}{2} (c+d x)\right )+3 a^5 A \tan ^5\left (\frac {1}{2} (c+d x)\right )-3 a^4 A b \tan ^5\left (\frac {1}{2} (c+d x)\right )-26 a^3 A b^2 \tan ^5\left (\frac {1}{2} (c+d x)\right )+26 a^2 A b^3 \tan ^5\left (\frac {1}{2} (c+d x)\right )+15 a A b^4 \tan ^5\left (\frac {1}{2} (c+d x)\right )-15 A b^5 \tan ^5\left (\frac {1}{2} (c+d x)\right )-8 a^5 C \tan ^5\left (\frac {1}{2} (c+d x)\right )+8 a^4 b C \tan ^5\left (\frac {1}{2} (c+d x)\right )-30 a^4 A b \Pi \left (-1;\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a-b}{a+b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (c+d x)\right )+b \tan ^2\left (\frac {1}{2} (c+d x)\right )}{a+b}}+60 a^2 A b^3 \Pi \left (-1;\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a-b}{a+b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (c+d x)\right )+b \tan ^2\left (\frac {1}{2} (c+d x)\right )}{a+b}}-30 A b^5 \Pi \left (-1;\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a-b}{a+b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (c+d x)\right )+b \tan ^2\left (\frac {1}{2} (c+d x)\right )}{a+b}}-30 a^4 A b \Pi \left (-1;\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a-b}{a+b}\right ) \tan ^2\left (\frac {1}{2} (c+d x)\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (c+d x)\right )+b \tan ^2\left (\frac {1}{2} (c+d x)\right )}{a+b}}+60 a^2 A b^3 \Pi \left (-1;\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a-b}{a+b}\right ) \tan ^2\left (\frac {1}{2} (c+d x)\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (c+d x)\right )+b \tan ^2\left (\frac {1}{2} (c+d x)\right )}{a+b}}-30 A b^5 \Pi \left (-1;\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a-b}{a+b}\right ) \tan ^2\left (\frac {1}{2} (c+d x)\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (c+d x)\right )+b \tan ^2\left (\frac {1}{2} (c+d x)\right )}{a+b}}+(a+b) \left (-26 a^2 A b^2+15 A b^4+a^4 (3 A-8 C)\right ) E\left (\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a-b}{a+b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \left (1+\tan ^2\left (\frac {1}{2} (c+d x)\right )\right ) \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (c+d x)\right )+b \tan ^2\left (\frac {1}{2} (c+d x)\right )}{a+b}}+2 a (a+b) \left (3 a A b^2-5 A b^3+3 a^3 C+a^2 b (6 A+C)\right ) F\left (\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a-b}{a+b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \left (1+\tan ^2\left (\frac {1}{2} (c+d x)\right )\right ) \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (c+d x)\right )+b \tan ^2\left (\frac {1}{2} (c+d x)\right )}{a+b}}\right )}{3 a \left (a^3-a b^2\right )^2 d (A+2 C+A \cos (2 c+2 d x)) (a+b \sec (c+d x))^{5/2} \sqrt {1+\tan ^2\left (\frac {1}{2} (c+d x)\right )} \left (a \left (-1+\tan ^2\left (\frac {1}{2} (c+d x)\right )\right )-b \left (1+\tan ^2\left (\frac {1}{2} (c+d x)\right )\right )\right )} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(6417\) vs.
\(2(518)=1036\).
time = 0.29, size = 6418, normalized size = 11.48
method | result | size |
default | \(\text {Expression too large to display}\) | \(6418\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {\cos \left (c+d\,x\right )\,\left (A+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )}{{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^{5/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________